package cdu.bbs.bbsv2.service.impl;

import cdu.bbs.bbsv2.mapper.AdminMapper;
import cdu.bbs.bbsv2.domain.Admin;
import cdu.bbs.bbsv2.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin login(String loginAct, String loginPwd) {
        return adminMapper.login(loginAct,loginPwd);
    }

    @Override
    public List<Admin> getAll() {
        return adminMapper.getAll();
    }
}
